package com.fengxing.ams.pub.util;

import java.util.Random;

public class CodeUtil {

	private static final char[] ascii = new char[]{'A','B','C','D','E','F','G','H','J','K','L','M','N','P','Q','R','S','T','U','V','W','X','Y','Z','1','2','3','4','5','6','7','8','9'};
	
	private static final Random r = new Random();
	
	public static String createCode() {
		StringBuilder sb = new StringBuilder();
		for (int i = 0; i < 8; i++) {
			sb.append(ascii[r.nextInt(32)]);
		}
		return sb.toString();
	}
	
}
